// // Copyright (c) 2009 All Right Reserved // // vl // // 2009-01-01 // Contains ... using System; using JetBrains.Annotations; namespace LargoCommon.Music { /// The number of sharps or flats in the key signature. [Serializable] public enum TonalityKey //// This should be sbyte, but sbyte is not CLS-compliant, so we'll leave it as int { /// No flat defined. None = -1, #region Defined Keys /// Key has no sharps or flats. [UsedImplicitly] TonalityC = 0, /// Key has 1 flat. [UsedImplicitly] TonalityF = -1, /// Key has 2 flats. [UsedImplicitly] TonalityB = -2, /// Key has 3 flats. [UsedImplicitly] TonalityEb = -3, /// Key has 4 flats. [UsedImplicitly] TonalityAb = -4, /// Key has 5 flats. [UsedImplicitly] TonalityDb = -5, /// Key has 6 flats. [UsedImplicitly] TonalityGb = -6, /// Key has 7 flats. [UsedImplicitly] TonalityCb = -7, /// Key has 1 sharp. [UsedImplicitly] TonalityG = 1, /// Key has 2 sharps. [UsedImplicitly] TonalityD = 2, /// Key has 3 sharps. [UsedImplicitly] TonalityA = 3, /// Key has 4 sharps. [UsedImplicitly] TonalityE = 4, /// Key has 5 sharps. [UsedImplicitly] TonalityH = 5, /// Key has 6 sharps. [UsedImplicitly] TonalityFs = 6, /// Key has 7 sharps. [UsedImplicitly] TonalityCs = 7 #endregion } }